package com.yhd.tomcat.servlet;

import com.yhd.tomcat.req.BaseRequest;
import com.yhd.tomcat.resp.BaseResponse;
import com.yhd.tomcat.service.BaseService;

/**
 * @author yhd
 * @email yinhuidong1@xiaomi.com
 * @description TODO
 * @since 2021/6/10 下午6:22
 */
public class FirstServlet extends BaseService {
    @Override
    protected void doPost(BaseRequest request, BaseResponse response) throws Exception {
        response.write("This is the First Servlet");
    }

    @Override
    protected void doGet(BaseRequest request, BaseResponse response) throws Exception {

        this.doPost(request,response);
    }
}
